import {DutyTypeConstants} from "@/data/constants/Constants";

const dutyTypeMap = new Map([
    [DutyTypeConstants.Roulette, '未知'],
    [DutyTypeConstants.Dungeon, '迷宫挑战'],
    [DutyTypeConstants.Raid, '大型任务'],
    [DutyTypeConstants.Guildhest, '行会令'],
    [DutyTypeConstants.Trial, '讨伐歼灭战'],
])

export const getDutyTypeName = (dutyCode:number):string=>{
    return dutyTypeMap.get(dutyCode)||'未知'
}